<?php
/**
 * Created by PhpStorm.
 * User: admin
 * Date: 2019/7/22
 * Time: 11:28
 */

namespace app\index\controller;


use app\common\model\QrcodeToolModel;
use think\facade\Request;
use think\facade\App;

use DavidNineRoc\Qrcode\Factory;
use DavidNineRoc\Qrcode\QrCodePlus;
class Qrcode extends Base
{
    public function index(){
        return view();
    }
    //文本二维码
    public function content(){

    }

    //网址二维码
    public function url(){
       $param =  Request::param();
        $QrcodeToolModel = new QrcodeToolModel();
        $rootPath = App::getRootPath();
        print_r($QrcodeToolModel->logoMark('你好',$rootPath.'public/uploads/hao123.png'));

    }

    //名片二维码
    public function card(){
        //BEGIN:VCARD FN:jian TITLE:qewftewqf TEL;TYPE=CELL:18888888888 NOTE:QQ:785285852 END:VCARD
    }
    //app下载二维码
    public function app(){

    }
}
